package com.ruoyi.order.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 卖品订单卖品信息对象 goods_order_goods_info
 *
 * @author HYANFENG
 * @date 2021-03-17
 */
@TableName("goods_order_goods_info")
public class GoodsOrderGoodsInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "id")
    private Long id;
    /** 卖品订单信息ID */
    @Excel(name = "卖品订单信息ID")
    private Long goodsOrderInfoId;
    /** 卖品编码 */
    @Excel(name = "卖品编码")
    private String goodsCode;
    /** 卖品名称 */
    @Excel(name = "卖品名称")
    private String goodsName;
    /** 数量 */
    @Excel(name = "数量")
    private Integer goodsCount;
    /** 卖品⾦额 */
    @Excel(name = "卖品⾦额")
    private Long goodsPrice;
    /** 取货标识 */
    @Excel(name = "取货标识")
    private String pickupFlag;

    private String goodsPicUrl;

    private List<GoodsOrderComboInfo> comboList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setGoodsOrderInfoId(Long goodsOrderInfoId)
    {
        this.goodsOrderInfoId = goodsOrderInfoId;
    }

    public Long getGoodsOrderInfoId()
    {
        return goodsOrderInfoId;
    }
    public void setGoodsCode(String goodsCode)
    {
        this.goodsCode = goodsCode;
    }

    public String getGoodsCode()
    {
        return goodsCode;
    }

    public Integer getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(Integer goodsCount) {
        this.goodsCount = goodsCount;
    }

    public void setGoodsName(String goodsName)
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName()
    {
        return goodsName;
    }

    public void setGoodsPrice(Long goodsPrice)
    {
        this.goodsPrice = goodsPrice;
    }

    public Long getGoodsPrice()
    {
        return goodsPrice;
    }
    public void setPickupFlag(String pickupFlag)
    {
        this.pickupFlag = pickupFlag;
    }

    public String getPickupFlag()
    {
        return pickupFlag;
    }

    public String getGoodsPicUrl() {
        return goodsPicUrl;
    }

    public void setGoodsPicUrl(String goodsPicUrl) {
        this.goodsPicUrl = goodsPicUrl;
    }

    public List<GoodsOrderComboInfo> getComboList() {
        return comboList;
    }

    public void setComboList(List<GoodsOrderComboInfo> comboList) {
        this.comboList = comboList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsOrderInfoId", getGoodsOrderInfoId())
            .append("goodsCode", getGoodsCode())
            .append("goodsName", getGoodsName())
            .append("goodsCount", getGoodsCount())
            .append("goodsPrice", getGoodsPrice())
            .append("pickupFlag", getPickupFlag())
            .toString();
    }
}
